package com.zekdot.password.dao;

import com.zekdot.password.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Create by zekdot on 19-12-28.
 */
@Mapper
@Repository
public interface UserDao {

    @Select("SELECT * FROM user WHERE username=#{username}")
    UserEntity getUserByUsername(@Param("username") String username);
}
